package com.ruoyi.system.service.impl;

import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.system.domain.Communication;
import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.mapper.CommunicationMapper;
import com.ruoyi.system.service.ICommunicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 通讯录服务层
 *
 * @author 丁
 */

@Service
public class CommunicationServiceImpl implements ICommunicationService {

    @Autowired
    private CommunicationMapper communicationMapper;

    @Override
    public int insert(Communication communication) {

        return communicationMapper.insert(communication);
    }

    @Override
    public int delete(Long[] ids)
    {
        return communicationMapper.delete(ids);
    }

    @Override
    public int update(Communication communication) {
        return communicationMapper.update(communication);

    }

    @Override
    public List<Communication> select(Communication communication) {
        return communicationMapper.select(communication);
    }

    @Override
    public Communication selectId(Long id) {
        return communicationMapper.selectId(id);
    }
}
